<?php
$this->breadcrumbs=array(
	'手机列表'=>array('index'),
	$model->moep_name,
);

$this->menu=array(
	array('label'=>'手机列表', 'url'=>array('index')),
	array('label'=>'增加手机', 'url'=>array('create')),
	array('label'=>'修改手机', 'url'=>array('update', 'id'=>$model->moep_id)),
	array('label'=>'删除', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->moep_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'查看手机介绍', 'url'=>array('mobilePhoneInfo/view', 'id'=>$model->moep_id)),
);
?>

<h1><?php echo $model->moep_name; ?></h1>

<?php $brandInfo = $this->getBrandInfo($model->moeb_id)?>
<?php 
	$typeMap = array(0=>'不是',
				 1=>'是',
				);
	$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'moep_id',
		'moep_type',
		'moep_price',
		//'moep_hot_sale',
		array('label' => '是否热销产品',
			  'name'  => 'moep_hot_sale',
			  'type'=>'raw',
			  'value' => $typeMap[$model->moep_hot_sale],
			),
		//'moep_vote_num',
		//'moep_vote_score',
		array('label' => '手机log',
			  'name'  => 'moep_log',
			  'type'=>'raw',
			  'value' => CHtml::image($model->moep_log,'' ,array('width'=>'100px')),
			),
		'moep_name',
		'moep_desc',
		array('label' => '手机品牌',
			  'name'  => 'moeb_id',
			  'type'=>'raw',
			  'value' => $brandInfo['moeb_name'],
			),
		'moep_os',
		'moep_screen_size',
		'moep_pix_x',
		'moep_pix_y',
	),
)); ?>
